package exception;

import java.io.FileOutputStream;

public class FinallyDemo1 {
    public static void main(String[] args) {
        System.out.println("程序开始");
        try {
            String line = null;
            System.out.println(line.length());
        }catch (Exception e){
            System.out.println("程序出错了并修复");
        }finally {
            System.out.println("执行代码finally");
        }
        System.out.println("程序结束");
    }
}
